package com.example.m1;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@MapperScan("com.example.m1.mapper")
//开启服务注册与发现功能。
@EnableDiscoveryClient
//扫描那些声明它们是假客户端的接口(通过FeignClient @FeignClient)
@EnableFeignClients(basePackages = "com.example.service1.common.api")
@SpringBootApplication
public class M1Application {

    public static void main(String[] args) {
        SpringApplication.run(M1Application.class, args);
    }

}
